package com.coolingme.f03_abstractfactory;

import com.coolingme.f03_abstractfactory.factory.JavaCourseFactory;
import com.coolingme.f03_abstractfactory.factory.PythonCourseFactory;

/**
 * 抽象工厂测试
 *
 * @author wangyue
 * @date 2020/9/17 17:38
 */
public class Test {

    public static void main(String[] args) {
        // Java工厂的产品族
        JavaCourseFactory javaCourseFactory = new JavaCourseFactory();
        javaCourseFactory.createCourse().learn();
        javaCourseFactory.createNote().read();

        // Python工厂的产品族
        PythonCourseFactory pythonCourseFactory = new PythonCourseFactory();
        pythonCourseFactory.createCourse().learn();
        pythonCourseFactory.createNote().read();

    }

}
